package com.hrms.doctor.mapper;

import com.hrms.doctor.domain.Doctor;
import com.hrms.doctor.domain.DoctorPatient;
import com.hrms.doctor.domain.vo.DoctorPatientVo;
import com.hrms.doctor.domain.vo.DoctorVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import javax.print.Doc;
import java.util.List;


@Mapper
public interface DoctorMapper {


    public List<Doctor> selectDoctor(@Param(value = "name") String name, @Param(value = "phone") String phone);

    public Integer insertDoctor(Doctor doctor);

    public Integer deleteById(List<Long> list);


    public Doctor selectDoctorById(Long id);

    public Integer update(Doctor doctor);

    public Integer insertPatient(DoctorPatient doctorPatient);

    public List<DoctorPatientVo> selectDoctorPatient(@Param("id") Long id,@Param("name") String name,@Param("phone")String phone);

    public Integer deletePatientById(@Param("id") Long id,@Param("list") List<Long> list);
    public void deleteDoctorPatient(@Param("list") List<Long> list);

    List<DoctorVo> selectDoctorByName(@Param("name") String name, @Param("deptName") String deptName);


}
